package com.liy.cloud.common.pw.service.impl;

import com.liy.cloud.common.pw.dao.PwAccountBillDao;
import com.liy.cloud.common.pw.entity.PwAccountBillEntity;
import com.liy.cloud.common.pw.service.PwAccountBillService;
import com.das.framework.common.dao.IBaseDao;
import com.das.framework.common.service.impl.BaseServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author: liyang
 * @Date: 2018/6/26 19:18
 **/
@Service
public class PwAccountBillServiceImpl extends BaseServiceImpl<PwAccountBillEntity, String> implements PwAccountBillService {

    @Autowired
    PwAccountBillDao pwAccountBillDao;

    @Override
    public IBaseDao<PwAccountBillEntity, String> getDao() {
        return pwAccountBillDao;
    }

    /**
     * @Author:  liyang
     * @Date:    2018/8/30  14:03
     * @Description:  查询参数实体传入多个type值查询对应的bill单据
     *                PwAccountBillEntity.setTypes( List<type> )
     **/
    @Override
    public List<PwAccountBillEntity> getByTypesList(PwAccountBillEntity entity) {
        return pwAccountBillDao.getByTypesList(entity);
    }
}
